package scene;

import raytracer.Vector3f;

/// A class representing a 3D point light source.
public class SpotLight extends AbstractLight {
	public Vector3f dir;
	public float a1, a2;

	// / Create a light source at the origin with white color.
	public SpotLight() {
		super();
	}

	// / Create a light source with the given position and color.
	public SpotLight(float x, float y, float z, float dx, float dy, float dz, float a1, float a2, Color newColor) {
		super(x, y, z, newColor);
		this.dir = new Vector3f(x, y, z);
		this.a1 = a1;
		this.a2 = a2;
	}

	@Override
	public String toString() {
		return "@" + pos + " >" + dir + " a" + a1 + "-" + a2;
	}

}
